package com.ctshk.rpc.order.ship.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 船票退款记录
 * </p>
 *
 * @author 刘蕾
 * @since 2021-02-23
 */
@Data
@ApiModel(value="ShipOrderRefund对象", description="船票退款记录")
public class ShipOrderRefundCancelReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "所属订单")
    private Long orderId;

    @ApiModelProperty(value = "收款币种id",required = true)
    private Long currencyId;

    @ApiModelProperty(value = "收款币种",required = true)
    private String currency;

    @NotNull(message = "退款金额不能为空")
    @ApiModelProperty(value = "退款金额")
    private BigDecimal refundAmount;

    @NotNull(message = "退款金额不能为空")
    @ApiModelProperty(value = "退款方式ID")
    private Long refundWayId;

    @NotNull(message = "退款金额不能为空")
    @ApiModelProperty(value = "退款方式")
    private String refundWay;

    @NotBlank(message = "退款账户不能为空")
    @ApiModelProperty(value = "退款账户")
    private String refundAccount;

    @ApiModelProperty(value = "备注")
    private String remark;
}
